package helper

import "git.bybit.com/svc/stub/pkg/pb/api/consts/euser"

// BrokerID broker types
type BrokerID int

const (
	BrokerGlobalCnName = "全站"
	BrokerGlobalEnName = "Global"
	BrokerKrCnName     = "韩国站"
	BrokerKrEnName     = "South Korea"
	BrokerTrCnName     = "土耳其站"
	BrokerTrEnName     = "Turkey"
)

func GetBrokerCnName(id euser.BrokerID) string {
	switch id {
	case euser.BrokerID_SMARTBIT:
		return BrokerKrCnName
	case euser.BrokerID_TURKEY:
		return BrokerTrCnName
	case euser.BrokerID_BYBIT:
		return BrokerGlobalCnName
	}

	return BrokerGlobalCnName
}

func GetBrokerEnName(id euser.BrokerID) string {
	switch id {
	case euser.BrokerID_SMARTBIT:
		return BrokerKrEnName
	case euser.BrokerID_TURKEY:
		return BrokerTrEnName
	case euser.BrokerID_BYBIT:
		return BrokerGlobalEnName
	}

	return BrokerGlobalEnName
}
